package com.hm.service.config.db.ds1;

import com.hm.service.config.constant.DBConfig;
import com.zaxxer.hikari.HikariDataSource;

/**
 * hm
 * 主数据源
 */
public class CustomHikariDataSource extends HikariDataSource {

    public CustomHikariDataSource() {
        String url = DBConfig.ds1.get("url");
        String Username = DBConfig.ds1.get("Username");
        String Password = DBConfig.ds1.get("Password");
        String DriverClassName = DBConfig.ds1.get("DriverClassName");
        setJdbcUrl(url);
        setUsername(Username);
        setPassword(Password);
        setDriverClassName(DriverClassName);
    }
}
